<%if @objects.empty?%>
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><%=image_tag "/images/nil.gif"%></td>
		<td class="biggray" valign="center"><strong>对不起，没有找到和<%=@query%>相关的报告</strong></td>
	</tr>
</table>
<%else%>
<% for report in @objects %>
<table width="495" border="0" cellpadding="0" cellspacing="0"
	class="medgray">
	<tr>
		<td width="70" rowspan="6" class="medgray" valign="top">
		<table width="61" height="80">
			<tr>
				<td><%=showimage(report)%></td>
			</tr>
			<tr>
				<td align="center" class="medblue"><strong> <%=reportuser_tag(report)%>
				</strong></td>
			</tr>
		</table>
		</td>
		<td width="330" class="medgray" valign="top"><strong><%=link_to h(report.title), :controller=>"report", :action =>"viewreport",
                                                                                    :id => report.id%></strong></td>
		<td width="100" valign="top">
		<div align="right">共有<%=report.reply_times%>&nbsp;条评论</div>
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<%position=report.ReportPosition ?  "-"+report.ReportPosition.cname: ""
			city=report.ReportCity ?  "-"+report.ReportCity.cname: ""
				effective_year=report.effective_year.to_i==0 ? "公司":report.effective_year+"年" %>
		<td colspan="2" class="medblack">报告简介:&nbsp;<%=myhighlight(effective_year+city+position,@query_arrays)%>汇总报告</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td align="right" colspan="2"><%if report.updated_time %> 最后更新于:&nbsp;<%=report.updated_time.strftime(" %y年%m月%d日 - %H:%M ")%>
		<%else %> 创建时间:&nbsp;<%=report.created_time.strftime(" %y年%m月%d日 - %H:%M ")%>
		<%end %></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="3" class="spanline">&nbsp;</td>
	</tr>
	<% end %>
</table>
<%end%>
